<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
 !--       第一种-->
        <?php
            $i = array( '苹果','香蕉','柚子','苹果','芒果','梨' );
            
            echo "$i[2]";
            
            
            var_dump($i);
        ?>
        <br>
        <hr>
<!--    第二种-->
        <?php
             $i[] = '苹果';
             $i[] = '香蕉';
             $i[] = '柚子';
             $i[] = '苹果';
             $i[] = '芒果';
             $i[] = '梨';
         
            echo "$i[2]";
        ?>
        <br>
        <hr>
<!--        第三种-->
        <?php
            $i = array('wow'=> '苹果','tow'=>'香蕉','ree'=>'柚子','fow'=>'苹果','fee'=>'芒果','tffow'=>'梨' );
            
            echo "$i[ree]";
             
            unset($i['fee']);//删除数组;
            var_dump($i);
        ?>
    </body>
</html>
